package com.swn.common.util;

import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;

public class TestUtil {

	public static String getHtmlContent(int id){
		String returnVal="";
		JdbcTemplate jdbcTemplate	= (JdbcTemplate)ServiceLocator.getBean("jdbcTemplate");
		
		
		Map<String,Object> map = jdbcTemplate.queryForMap("select * from test1 where id ="+id);
		
	   returnVal = (String)map.get("name");
		return returnVal;
	}
}
